//图片切割 合并 js 处理不了 视频压缩 调用底层硬件：POS 动态链接库
const buf1 = Buffer.alloc(10)
console.log(buf1)
//用 buffer存储字符，输出16进制ascii 码
const buf2 = Buffer.from('a')
console.log(buf2)

const buf3 = Buffer.from('中')
console.log(buf3) //utf-8

const buf4 = Buffer.concat([buf2,buf3])
console.log(buf4,buf4.toString())